//常量
export default {

  //施工合同
  sghtOption: {
    tooltip: {
      trigger: 'axis',
      axisPointer: { // 坐标轴指示器，坐标轴触发有效
        type: 'shadow' // 默认为直线，可选为：'line' | 'shadow'
      }
    },
    color: ['#f87c46', '#4eb2ff', '#91c7ae'],
    legend: {
      data: ['所有', '已决算', '未决算'],
      align: 'right',
      right: 10
    },
    grid: {
      left: '3%',
      right: '4%',
      bottom: 110,
      containLabel: true
    },
    xAxis: [{
      type: 'category',
      data: ['施工', '劳务分包']
    }],
    yAxis: [{
      type: 'value',
      name: '数量',
      axisLabel: {
        formatter: '{value}'
      }
    }],
    series: [{
      name: '所有',
      type: 'bar',
      data: ['0', '0']
    }, {
      name: '已决算',
      type: 'bar',
      data: ['0', '0']
    }, {
      name: '未决算',
      type: 'bar',
      data: ['0', '0']
    }]
  },

  //招投标
  ztbOption: {
    tooltip: {
      trigger: 'item',
      formatter: function (params, ticket, callback) {
        let res = params.seriesName;
        res += '<br/>' + params.name + ' : ' + params.value;
        return res;
      }
    },
    color: ['#0177ec', '#ec6c00', '#c4ccd3', '#00c633'],
    grid: {
      bottom: 140
    },
    legend: {
      x: 'center',
      y: 'left',
      data: ['公开招标', '直接发包', '邀请招标', '异地招标'],
    },
    xAxis: [{
      type: 'category',
      axisLine: {
        show: false
      },
      axisTick: {
        show: false
      },
      axisLabel: {
        interval: 0
      },
      data: [{
        value: '招标中',
        textStyle: {
          fontSize: 14
        }
      }, {
        value: '办理完结',
        textStyle: {
          fontSize: 14
        }
      },]
    }],
    yAxis: [{
      show: false
    }],
    series: [{
      name: '招投标在建工程数据',
      center: [
        '29.0%',
        '34%'
      ],
      radius: '38%',
      itemStyle: {
        normal: {
          label: {
            position: 'inner',
            formatter: "{d}%"
          },
          labelLine: {
            show: false
          }
        }
      },
      type: 'pie',
      data: [
        {
          name: '公开招标',
          value: '0'
        },
        {
          name: '邀请招标',
          value: '0'
        },
        {
          name: '直接发包',
          value: '0'
        }
      ],
    }, {
      name: '招投标竣工工程数据',
      center: [
        '71.0%',
        '34%'
      ],
      radius: '38%',
      itemStyle: {
        normal: {
          label: {
            position: 'inner',
            formatter: "{d}%"
          },
          labelLine: {
            show: false
          }
        }
      },
      type: 'pie',
      data: [
        {
          name: '公开招标',
          value: '0'
        },
        {
          name: '邀请招标',
          value: '0'
        },
        {
          name: '直接发包',
          value: '0'
        }
      ]
    }]
  },

// 违规处理数据分类
  wgOption: {

    tooltip: {
      trigger: 'axis',
      axisPointer: { // 坐标轴指示器，坐标轴触发有效
        type: 'shadow' // 默认为直线，可选为：'line' | 'shadow'
      }
    },
    color: ['#f87c46', '#4eb2ff'],
    legend: {
      data: ['全年', '本月新增'],
      align: 'right',
      right: 10
    },
    grid: {
      left: '3%',
      right: '4%',
      bottom: 110,
      containLabel: true
    },
    xAxis: [{
      type: 'category',
      data: ['停工通知', '整改通知', '无证施工', '不良行为']
    }],
    yAxis: [{
      type: 'value',
      name: '数量',
      axisLabel: {
        formatter: '{value}'
      }
    }],
    series: [{
      name: '全年',
      type: 'bar',
      data: ['0', '0', '0', '0']
    }, {
      name: '本月新增',
      type: 'bar',
      data: ['0', '0', '0', '0']
    }]
  },

// 施工许可数据
  sgxkOption: {
    tooltip: {
      trigger: 'axis'
    },
    color: ['#f87c46', '#4eb2ff'],
    grid: {
      left: '3%',
      right: '12%',
      bottom: 110,
      containLabel: true
    },
    legend: {
      data: ['今年全部', '本月新增']
    },

    calculable: true,
    xAxis: [
      {
        type: 'category',
        boundaryGap: false,
        data: ['房建', '市政', '园林', '装饰', "其他"]
      }
    ],
    yAxis: [{
      type: 'value',
      name: '数量',
      axisLabel: {
        formatter: '{value}'
      }
    }],
    series: [
      {
        name: '今年全部',
        type: 'line',
        data: ['0', '0', '0', '0', '0']
      },
      {
        name: '本月新增',
        type: 'line',
        data: ['0', '0', '0', '0', '0']
      }

    ]
  }

}
